#include "battery.h"
#include "battery_dragonball.h"

namespace igslib
{
	IBatteryManager* CBatteryManager::instance = 0;
	IBatteryManager* CBatteryManager::GetInstance() 
	{
		if ( instance == 0 )
		{
			instance = new CBatteryManager();
		}
		return instance ;
	}
	IBattery* CBatteryManager::New_ProjMCU(const std::string& name)
	{
		IBattery* rtn = nullptr;
		
		if(name == "DragonBallRace")
        {
            rtn = new battery_Grgn();
            cpns.insert(rtn);
        }
        return rtn;
	}
	
	
}

extern "C"{
	igslib::IBatteryManager* GetBatteryManagerInstance()
	{
		return igslib::CBatteryManager::GetInstance();
	}
}
